﻿var app = app || angular.module("Envision4App", ['ngRoute']);

app.config(["$routeProvider", '$httpProvider', function ($routeProvider, $httpProvider) {
    $routeProvider.when("/", {
        templateUrl: "App/Views/Home.html"
    }).when('/login', {
        templateUrl: 'App/Views/Login.html'
    });

    $httpProvider.interceptors.push('AuthFactory');
}]);  